import Vue from "vue";
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login',
            hidden: true,
            component: () => import('@/components/LoginPage.vue')
        },
        {
            path: '/login',
            hidden: true,
            component: () => import('@/components/LoginPage.vue')
        },
        {
            path: '*',
            redirect: 'NotFound',
            hidden: true,
            component: () => import('@/components/NotFound.vue')
        },
        {
            path: '/NotFound',
            hidden: true,
            component: () => import('@/components/NotFound.vue')
        },

        {
            path: '/home',
            name: '用户管理',
            iconClass: 'fa fa-users',

            component: () => import('@/components/HomePage.vue'),
            children: [
                {
                    path: '/home/index',
                    name: '首页',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/IndexPage.vue')
                },
                {
                    path: '/home/merchantsreview',
                    name: '二级商户审核',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/MerchantsReviewList.vue')
                },
                {
                    path: '/home/review',
                    name: '提现审核',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/ReviewList.vue')
                },
                {
                    path: '/home/refund',
                    name: '退款审核',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/RefundList.vue')
                },
                {
                    path: '/home/orderreview',
                    name: '订单审核',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/OrderReviewList.vue')
                },
                {
                    path: '/home/receiverreview',
                    name: '打手认证',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/ReceiverReviewList.vue')
                },
                {
                    path: '/home/logoutreview',
                    name: '注销审核',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/LogoutReviewList.vue')
                },
                {
                    path: '/home/historyreview',
                    name: '历史审核',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/HistoryReviewList.vue')
                },
                {
                    path: '/home/report',
                    name: '举报专栏',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/ReportList.vue')
                },
                {
                    path: '/home/monitors',
                    name: '系统监控',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/MonitorList.vue')
                },
                {
                    path: '/home/exceptions',
                    name: '异常列表',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/ExceptionList.vue')
                },

                {
                    path: '/home/sysbalance',
                    name: '系统金额',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/SysbalanceList.vue')
                },
                {
                    path: '/home/safetylist',
                    name: '理赔审核',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/SafetyList.vue')
                }, {
                    path: '/home/users',
                    name: '用户列表',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/UserList.vue')
                },
                {
                    path: '/home/orderlist',
                    name: '全部订单',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/OrderList.vue')
                },
                {
                    path: '/home/advice',
                    name: '反馈建议',
                    iconClass: 'fa fa-list',
                    component: () => import('@/components/users/AdviceList.vue')
                }
            ]
        }
    ],
    mode: 'history'
})
